package com.maxatime.thread;

/**
 * @author Mr.Zhao
 * @title:
 * @projectName phoenix
 * @description: TODO
 * @date 2021/8/23 19:12
 */
public class BankAccount {

    private int banlance=500;

     //查询
    public int getBanlance() {
        return banlance;
    }
    //存款
    public void deposit(int amount){
         banlance=banlance + amount;
    }


    //取款
    public void withdraw(int amount){
        banlance=banlance - amount;
    }




}
